package com.bwhx.eruler.dao.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.bwhx.eruler.bean.InputRuler;
import com.bwhx.eruler.bean.Page;
import com.bwhx.eruler.dao.InputRulerDao;

/**
 * @Description:
 */
@Repository
public class InputRulerDaoImpl extends BaseDaoImpl<InputRuler> implements InputRulerDao {
	public InputRulerDaoImpl() {
		this.setNs("com.bwhx.eruler.mapper.InputRulerMapper.");
	}

	
	@Override
	public List<InputRuler> list(Page p) {
		
		return getSqlSession().selectList("com.bwhx.eruler.mapper.InputRulerMapper." + "list",p);

	}

	@Override
	public Integer count(InputRuler ir) {
		Object selectOne = getSqlSession().selectOne("com.bwhx.eruler.mapper.InputRulerMapper." + "count",ir);
		if(null!=selectOne && selectOne instanceof Integer){
			return (int)selectOne;
		}
		return 0;
	}
	
}
